# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-unicodecsv
_pkgname=python-unicodecsv
pkgver=0.14.1
pkgrel=2
pkgdesc="The unicodecsv is a csv module which supports unicode strings"
url="https://github.com/jdunck/python-unicodecsv"
arch="all"
license="custom" # BSD-2-Clause with extra notice
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jdunck/python-unicodecsv/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="9135c0f3702d60d72b2544476feb9e924b8d592e06d21eca98cd10406de9ecca49bcde9e9bfa7baeb4358dddf86ad737e155355d8b927de5b93912201a8d87b0  py3-unicodecsv-0.14.1.tar.gz"
